<!-- HTML header for doxygen 1.8.14-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="cache-control" content="max-age=86400"/>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GBDK 2020 Docs: gbdk-lib/include/gbdk/far_ptr.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GBDK 2020 Docs
   &#160;<span id="projectnumber">4.4.0</span>
   </div>
   <div id="projectbrief">API Documentation for GBDK 2020</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('far__ptr_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">far_ptr.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;types.h&gt;</code><br />
<code>#include &lt;<a class="el" href="stdint_8h_source.html">stdint.h</a>&gt;</code><br />
</div>
<p><a href="far__ptr_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">union &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="union____far__ptr.html">__far_ptr</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a0c227677a96f9bf7e84a90922f2f8708"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#a0c227677a96f9bf7e84a90922f2f8708">TO_FAR_PTR</a>(ofs,  seg)&#160;&#160;&#160;(((<a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>)seg &lt;&lt; 16) | (<a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>)ofs)</td></tr>
<tr class="separator:a0c227677a96f9bf7e84a90922f2f8708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bebc5322a1bba1c60c8d60e9b58be14"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#a5bebc5322a1bba1c60c8d60e9b58be14">FAR_SEG</a>(ptr)&#160;&#160;&#160;(((union <a class="el" href="union____far__ptr.html">__far_ptr</a> *)&amp;ptr)-&gt;segofs.seg)</td></tr>
<tr class="separator:a5bebc5322a1bba1c60c8d60e9b58be14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab79586d8cc3cb926f363f4d0cf7143d5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#ab79586d8cc3cb926f363f4d0cf7143d5">FAR_OFS</a>(ptr)&#160;&#160;&#160;(((union <a class="el" href="union____far__ptr.html">__far_ptr</a> *)&amp;ptr)-&gt;segofs.ofs)</td></tr>
<tr class="separator:ab79586d8cc3cb926f363f4d0cf7143d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a048cfacb5d37ab758a74f44e86c1dbc6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#a048cfacb5d37ab758a74f44e86c1dbc6">FAR_FUNC</a>(ptr,  typ)&#160;&#160;&#160;((typ)(((union <a class="el" href="union____far__ptr.html">__far_ptr</a> *)&amp;ptr)-&gt;segfn.fn))</td></tr>
<tr class="separator:a048cfacb5d37ab758a74f44e86c1dbc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f4ab1893ea392f8bf042a3b97de4730"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#a7f4ab1893ea392f8bf042a3b97de4730">FAR_CALL</a>(ptr,  typ, ...)&#160;&#160;&#160;(<a class="el" href="far__ptr_8h.html#a27792b7fc3796a1e1828d4c5812e5b21">__call_banked_ptr</a>=ptr,((typ)(&amp;<a class="el" href="far__ptr_8h.html#aedacafa73ba2c54e49976dccfc83b40b">__call__banked</a>))(__VA_ARGS__))</td></tr>
<tr class="separator:a7f4ab1893ea392f8bf042a3b97de4730"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a7c6f52121dd07af29b477f4e64314842"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="stdint_8h.html#a33594304e786b158f3fb30289278f5af">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a></td></tr>
<tr class="separator:a7c6f52121dd07af29b477f4e64314842"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aedacafa73ba2c54e49976dccfc83b40b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#aedacafa73ba2c54e49976dccfc83b40b">__call__banked</a> (void)</td></tr>
<tr class="separator:aedacafa73ba2c54e49976dccfc83b40b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5987288bdbbd891b56754122a2d53d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#a33594304e786b158f3fb30289278f5af">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#ad5987288bdbbd891b56754122a2d53d3">to_far_ptr</a> (void *ofs, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> seg)</td></tr>
<tr class="separator:ad5987288bdbbd891b56754122a2d53d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a27792b7fc3796a1e1828d4c5812e5b21"><td class="memItemLeft" align="right" valign="top">volatile <a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#a27792b7fc3796a1e1828d4c5812e5b21">__call_banked_ptr</a></td></tr>
<tr class="separator:a27792b7fc3796a1e1828d4c5812e5b21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1344c26ca298a9eadea4bcfea6442ae3"><td class="memItemLeft" align="right" valign="top">volatile void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#a1344c26ca298a9eadea4bcfea6442ae3">__call_banked_addr</a></td></tr>
<tr class="separator:a1344c26ca298a9eadea4bcfea6442ae3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a892433d652420445a9a6aebf1a256623"><td class="memItemLeft" align="right" valign="top">volatile <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="far__ptr_8h.html#a892433d652420445a9a6aebf1a256623">__call_banked_bank</a></td></tr>
<tr class="separator:a892433d652420445a9a6aebf1a256623"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Far pointers include a segment (bank) selector so they are able to point to addresses (functions or data) outside of the current bank (unlike normal pointers which are not bank-aware).</p>
<p>See the <code>banks_farptr</code> example project included with gbdk.</p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>Add link to a discussion about banking (such as, how to assign code and variables to banks) </dd></dl>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a0c227677a96f9bf7e84a90922f2f8708"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c227677a96f9bf7e84a90922f2f8708">&#9670;&nbsp;</a></span>TO_FAR_PTR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TO_FAR_PTR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ofs, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">seg&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(((<a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>)seg &lt;&lt; 16) | (<a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>)ofs)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Macro to obtain a far pointer at compile-time </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ofs</td><td>Memory address within the given Segment (Bank) </td></tr>
    <tr><td class="paramname">seg</td><td>Segment (Bank) number</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A far pointer (type <a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>) </dd></dl>

</div>
</div>
<a id="a5bebc5322a1bba1c60c8d60e9b58be14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bebc5322a1bba1c60c8d60e9b58be14">&#9670;&nbsp;</a></span>FAR_SEG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FAR_SEG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ptr</td><td>)</td>
          <td>&#160;&#160;&#160;(((union <a class="el" href="union____far__ptr.html">__far_ptr</a> *)&amp;ptr)-&gt;segofs.seg)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Macro to get the Segment (Bank) number of a far pointer </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptr</td><td>A far pointer (type <a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Segment (Bank) of the far pointer (type uint16_t) </dd></dl>

</div>
</div>
<a id="ab79586d8cc3cb926f363f4d0cf7143d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab79586d8cc3cb926f363f4d0cf7143d5">&#9670;&nbsp;</a></span>FAR_OFS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FAR_OFS</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ptr</td><td>)</td>
          <td>&#160;&#160;&#160;(((union <a class="el" href="union____far__ptr.html">__far_ptr</a> *)&amp;ptr)-&gt;segofs.ofs)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Macro to get the Offset (address) of a far pointer </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptr</td><td>A far pointer (type <a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Offset (address) of the far pointer (type void *) </dd></dl>

</div>
</div>
<a id="a048cfacb5d37ab758a74f44e86c1dbc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a048cfacb5d37ab758a74f44e86c1dbc6">&#9670;&nbsp;</a></span>FAR_FUNC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FAR_FUNC</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ptr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">typ&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((typ)(((union <a class="el" href="union____far__ptr.html">__far_ptr</a> *)&amp;ptr)-&gt;segfn.fn))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7f4ab1893ea392f8bf042a3b97de4730"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f4ab1893ea392f8bf042a3b97de4730">&#9670;&nbsp;</a></span>FAR_CALL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FAR_CALL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ptr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">typ, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(<a class="el" href="far__ptr_8h.html#a27792b7fc3796a1e1828d4c5812e5b21">__call_banked_ptr</a>=ptr,((typ)(&amp;<a class="el" href="far__ptr_8h.html#aedacafa73ba2c54e49976dccfc83b40b">__call__banked</a>))(__VA_ARGS__))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Macro to call a function at far pointer <b>ptr</b> of type <b>typ</b> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptr</td><td>Far pointer of a function to call (type <a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>) </td></tr>
    <tr><td class="paramname">typ</td><td>Type to cast the function far pointer to. </td></tr>
    <tr><td class="paramname">...</td><td>VA Args list of parameters for the function</td></tr>
  </table>
  </dd>
</dl>
<p><b>type</b> should match the definition of the function being called. For example: </p><div class="fragment"><div class="line"><span class="comment">// A function in bank 2</span></div>
<div class="line"><span class="preprocessor">#pragma bank 2</span></div>
<div class="line"><a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> some_function(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> param1, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> param2) __banked {  <span class="keywordflow">return</span> 1; };</div>
<div class="line"> </div>
<div class="line">...</div>
<div class="line"><span class="comment">// Code elsewhere, such as unbanked main()</span></div>
<div class="line"><span class="comment">// This type declaration should match the above function</span></div>
<div class="line">typedef <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> (*some_function_t)(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>) __banked;</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Using FAR_CALL() with the above as *ptr*, *typ*, and two parameters.</span></div>
<div class="line">result = <a class="code" href="far__ptr_8h.html#a7f4ab1893ea392f8bf042a3b97de4730">FAR_CALL</a>(some_function, some_function_t, 100, 50);</div>
<div class="ttc" id="afar__ptr_8h_html_a7f4ab1893ea392f8bf042a3b97de4730"><div class="ttname"><a href="far__ptr_8h.html#a7f4ab1893ea392f8bf042a3b97de4730">FAR_CALL</a></div><div class="ttdeci">#define FAR_CALL(ptr, typ,...)</div><div class="ttdef"><b>Definition:</b> far_ptr.h:65</div></div>
<div class="ttc" id="astdint_8h_html_adf4d876453337156dde61095e1f20223"><div class="ttname"><a href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a></div><div class="ttdeci">unsigned short int uint16_t</div><div class="ttdef"><b>Definition:</b> stdint.h:52</div></div>
</div><!-- fragment --><dl class="section return"><dt>Returns</dt><dd>Value returned by the function (if present) </dd></dl>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="a7c6f52121dd07af29b477f4e64314842"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c6f52121dd07af29b477f4e64314842">&#9670;&nbsp;</a></span>FAR_PTR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="stdint_8h.html#a33594304e786b158f3fb30289278f5af">uint32_t</a> <a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Type for storing a FAR_PTR </p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="aedacafa73ba2c54e49976dccfc83b40b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedacafa73ba2c54e49976dccfc83b40b">&#9670;&nbsp;</a></span>__call__banked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __call__banked </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad5987288bdbbd891b56754122a2d53d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5987288bdbbd891b56754122a2d53d3">&#9670;&nbsp;</a></span>to_far_ptr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="stdint_8h.html#a33594304e786b158f3fb30289278f5af">uint32_t</a> to_far_ptr </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ofs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
          <td class="paramname"><em>seg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Obtain a far pointer at runtime </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ofs</td><td>Memory address within the given Segment (Bank) </td></tr>
    <tr><td class="paramname">seg</td><td>Segment (Bank) number</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A far pointer (type <a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a>) </dd></dl>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a27792b7fc3796a1e1828d4c5812e5b21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27792b7fc3796a1e1828d4c5812e5b21">&#9670;&nbsp;</a></span>__call_banked_ptr</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">volatile <a class="el" href="far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842">FAR_PTR</a> __call_banked_ptr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1344c26ca298a9eadea4bcfea6442ae3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1344c26ca298a9eadea4bcfea6442ae3">&#9670;&nbsp;</a></span>__call_banked_addr</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">volatile void* __call_banked_addr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a892433d652420445a9a6aebf1a256623"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a892433d652420445a9a6aebf1a256623">&#9670;&nbsp;</a></span>__call_banked_bank</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">volatile <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> __call_banked_bank</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
</div>
</body>
</html>
